getAssertFailEvt (get event of last failed assertion)

Abgekündigt

Since: v2.0.

Bitte verwenden sie stattdessen getAssertFailEvtLong().

Syntax:

assertFailEvt = getAssertFailEvt();

Beschreibung:

Liefert eine Datenstruktur mit Information über die zuletzt fehlgeschlagene Zusicherung.

Funktionswert:

  // Assertion Failure Event.
D AssertFailEvt_t...
D                 ds                  Qualified Based(template)
D  msg                         256a
D  callStkEnt                         LikeDs(CallStkEnt_t)
D                                     Dim(MAX_CALL_STK_SIZE)

D MAX_CALL_STK_SIZE...
D                 c                   Const(64)

  // Call Stack Entry.
D CallStkEnt_t    ds                  Qualified Based(template)
D  pgmNm                        10a
D  modNm                        10a
D  procNm                      256a
D  specNb                       10a

Beispiel:

assertFailEvt = getAssertFailEvt();

assert( excpWasSeen :
        'aEqual( Hello : Good bye )'
      + ' should have raised an error message.' );

aEqual( 'Expected ''Hello'', but was ''Good bye''.' :
        assertFailEvt.msg );